package com.mybatisplus.mp.lock;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LockController {
    @Autowired
    LocalLock localLock;

    @GetMapping("/locallock/{key}")
    public String method1(@PathVariable("key")String key) {
        String fromDB = localLock.localLockTest(key);
        return fromDB;
    }
}
